# 使用官方 Java 8 基础镜像
FROM registry.cn-hangzhou.aliyuncs.com/qyhk-mirror-images/openjdk:8-jdk

COPY ./target/heal-0.0.1-SNAPSHOT.jar /heal-0.0.1-SNAPSHOT.jar
CMD ["--server.port=9528"]

EXPOSE 9528


ENTRYPOINT ["java","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=/usr/local/heapDump/hs_data","-Xms256m","-Xmx512m","-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=20001","-jar","/heal-0.0.1-SNAPSHOT.jar"]